package com.wh.springbootshiromanyrealm.service.impl;

import com.wh.springbootshiromanyrealm.mapper.AdminMapper;
import com.wh.springbootshiromanyrealm.pojo.Admin;
import com.wh.springbootshiromanyrealm.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Auther: HuiEr
 * @Date: 2020/3/4 19:03
 * @Description
 */
@Service
@Transactional
public class AdminService implements IAdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin findUserByName(String name) {
        return adminMapper.findUserByName(name);
    }
}
